This project is a PsychoPy experiment that presents a sequence of colors for the participant to remember after watching a video and listening to audio based on the participant's mood (happy or sad). The experiment collects and saves data on the participant's responses.
To run this application, you need:
happy.mp4, sad.mp4, happy.mp3, and sad.mp3 in the media/videos directory.Make sure you have Python installed on your system. You can download it from the official Python website.
Open a terminal (or Command Prompt) and navigate to your project directory. Then, create a virtual environment with the following command:
python -m venv venv
This will create a folder named venv in your project directory.
To start using the virtual environment, you need to activate it:
On Windows:
venv\Scripts\activate
On macOS and Linux:
source venv/bin/activate
After activation, your terminal prompt should change to indicate that you are now in the virtual environment.
Install the necessary packages using pip. You can do this with the following command:
pip install psychopy
This command will install PsychoPy and its dependencies.
/your_project_directory
│
├── /media
│ └── /videos
│ ├── happy.mp4
│ ├── sad.mp4
│ └── /audio
│ ├── happy.mp3
│ └── sad.mp3
│
├── experiment.py
└── ...
Once you have set up your environment and organized your files, you can run the experiment by executing the following command in your terminal:
python experiment.py
After you finish running your experiment, you can deactivate the virtual environment by simply typing:
deactivate
The experiment will save the participant's responses and other relevant data to a CSV file named color_sequence_data.csv in the root of your project directory.